package com.ruoyi.omp.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 仪表台账对象 omp_ny_meter_account
 *
 * @author cjie
 * @date 2021-07-29
 */
@Data
@ApiModel
public class NyMeterAccount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 仪表类型 */
    @Excel(name = "仪表类型")
    @ApiModelProperty(value = "仪表类型")
    private String meterType;

    /** 仪表编码 */
    @Excel(name = "仪表编码")
    @ApiModelProperty(value = "仪表编码")
    private String meterNum;

    /** 仪表编码 */
//    @Excel(name = "表计编号")
//    @ApiModelProperty(value = "表计编号")
//    private String meterCode;

    /** 仪表编码 */
    @Excel(name = "仪表名称")
    @ApiModelProperty(value = "仪表名称")
    private String meterName;

    private String meterNumNew;

    /** 设备分类 */
    @Excel(name = "设备分类")
    @ApiModelProperty(value = "设备分类")
    private String deviceType;

    /** 仪表型号 */
    @Excel(name = "仪表型号")
    @ApiModelProperty(value = "仪表型号")
    private String meterModel;

    @ApiModelProperty(value = "生产厂商")
    private String supplier;

    /** 安装位置 */
    @Excel(name = "安装位置")
    @ApiModelProperty(value = "安装位置")
    private String installPosition;

    /** 设备状态 */
    @Excel(name = "设备状态")
    @ApiModelProperty(value = "设备状态")
    private String state;

    /** 倍率 */
    @Excel(name = "倍率")
    @ApiModelProperty(value = "倍率")
    private BigDecimal magnification;

    /** 初始读数 */
    @Excel(name = "初始读数")
    @ApiModelProperty(value = "初始读数")
    private BigDecimal initialValue;

    /** 分摊池初始值 */
    @Excel(name = "分摊池初始值")
    @ApiModelProperty(value = "分摊池初始值")
    private BigDecimal shareInitialValue;

    /** 父Id */
    @Excel(name = "父Id")
    @ApiModelProperty(value = "父Id")
    private String parentId;

    /** 仪表类别(总表,私表..) */
    @Excel(name = "仪表类别(总表,私表..)")
    @ApiModelProperty(value = "仪表类别(总表,私表..)")
    private String category;

    /** 删除标志(0正常 1删除) */
    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String delFlag;

    /** 租户Id */
//    @Excel(name = "租户Id")
//    @ApiModelProperty(value = "租户Id")
//    private String tenantId;

    /** 企业名称 */
    @Excel(name = "企业名称")
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    /** 企业Id */
    @ApiModelProperty(value = "企业Id")
    private String enterpriseId;

    /** 房源Id */
    @Excel(name = "房源Id")
    @ApiModelProperty(value = "房源Id")
    private String roomId;

    /** 单元Id */
//    @Excel(name = "单元Id")
//    @ApiModelProperty(value = "单元Id")
//    private String unitId;

    /** 楼栋编号 */
    @Excel(name = "楼栋编号")
    @ApiModelProperty(value = "楼栋编号")
    private String buildingNum;

    /** 园区编号 */
    @Excel(name = "园区编号")
    @ApiModelProperty(value = "园区编号")
    private String parkNum;

    /** 园区Id */
    @Excel(name = "园区Id")
    @ApiModelProperty(value = "园区Id")
    private String parkId;

    /** 当前读数 */
    @Excel(name = "当前读数")
    @ApiModelProperty(value = "当前读数")
    private BigDecimal currentValue;

    /** 当前读日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "当前读日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "当前读日期")
    private Date currentCheckDate;

    //以下属性为页面视图属性
    /** 上级表 */
    @Excel(name = "上级表")
    @ApiModelProperty(value = "上级表")
    private String parentNum;

    /** 用途 */
    @Excel(name = "用途")
    @ApiModelProperty(value = "用途")
    private String use1;

}
